package top.zsyle.basic.mapper;


import top.zsyle.basic.query.BaseQuery;

import java.util.List;

public interface BaseMapper<T> {
    //查询一个
    T findById(Long id);

    //查询所有
    List<T> findAll();

    //删除
    void delete(Long id);

    //修改，编辑
    void update(T t);

    //新增
    void add(T t);

    //分页查询
    List<T> queryByPage(BaseQuery query);

    //查询条数
    Integer queryByCount(BaseQuery query);

    void batchDelete(List<Long> ids);
}
